package ru.study.jdbc.dao;

import ru.study.jdbc.entity.AbstractEntity;

public interface DAO  {	
	
	public <T extends AbstractEntity> T insert(T entity); 
	public <T extends AbstractEntity> T get(Class<T> type,Long id);
	public <T extends AbstractEntity> T update (T entity) ;
	public <T extends AbstractEntity> T delete(T entity);
	
	void closeConection() ; 
	
}
